<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
     <style>
       
        table {
               border-collapse:collapse ;
               margin: auto;
               }
        th, td{
               border: 1px solid;
               padding: 4px 10px;
               text-align: center;
              }       
    </style>
</head>
<body>
   
    <script>
         let num  = +prompt('行数')
          let num1  = +prompt('列数')
           for (let lx = 1; lx <=9 ; lx++) {
            for (let hx = 1; hx <= lx ; hx++ )
        document.write(`${lx}*${hx}=${lx*hx}`)
         document.write('<br>')
        }
    </script>
</body>
</html>